/*
 * Bell.hpp
 *
 *  Created on: 25.05.2014
 *      Author: philipp
 */

#ifndef BELL_HPP_
#define BELL_HPP_

#include "wiringPi.h"

/*
 * a bell is a button connected to the pi. there are two different bells.
 * the first bell will activate the camera, allowing the user to authenticate.
 * The second bell is mounted at the opposite side of the door, opening it instantly.
 */
class Bell {
private:
	//the pin the bell is connected to
	const int PIN;
public:
	//constructor
	Bell(int pin);
	//returns true if the bell is pressed.
	bool isPressed() const;
};

#endif /* BELL_HPP_ */
